package main

import (
	"errors"
	"strconv"
)

type student struct {
	name string
	age  int
}

type opstion interface {
	getName() string
	getStudents() []student
	setStudent(student student) error
}

func (s *student) getName() string {
	return s.name + strconv.Itoa(s.age)
}
func (s *student) getStudents() []student {
	return []student{*s}
}
func (s *student) setStudent(student student) error {
	if student.name == "" {
		return errors.New("student name is empty")
	}
	s.name = student.getName()
	s.age = student.age
	return nil
}
